package com.CusterRelSys.service.impl;

import com.CusterRelSys.entity.CstCustomer;
import com.CusterRelSys.entity.VOrders;
import com.CusterRelSys.mapper.CstSustomerWLZMapper;
import com.CusterRelSys.service.CstSustomerWLZService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by wang on 2017/12/1.
 */
@Service("cstSustomerWLZService")
public class CstSustomerWLZServiceImp implements CstSustomerWLZService {
    @Autowired
    CstSustomerWLZMapper cstSustomersWLZMapper;

    @Override
    public List<CstCustomer> selectOrderBy(String type)
    {
        List<CstCustomer> cstSustomers= cstSustomersWLZMapper.selectOrderBy(type);
        return cstSustomers;
    }

    @Override
    public List<VOrders> selectContrBy(VOrders vOrders)
    {
        List<VOrders> vOrdersList= cstSustomersWLZMapper.selectContrBy(vOrders);
        return vOrdersList;
    }
}
